import request from '@/utils/request'

//获取园区管理
export function getLeaseList(data) {
  return request({
    url: '/park/lease/queryLease',
    method: 'POST',
    data: data
  })
}

export function addLease(id) {
  return request({
    url: '/park/lease/addLease',
    method: 'get'
  })
}

//添加租赁信息
export function saveLease(data) {
  return request({
    url: '/park/lease/addLease',
    method: 'POST',
    data: data
  })
}

//生成账单
export function getGenerateBill(id) {
  return request({
    url: '/park/lease/getGenerateBill?id='+id,
    method: 'get'
  })
}
export function getLeaseDetails(id) {
  return request({
    url: '/park/lease/queryLeaseById?id='+id,
    method: 'get'
  })
}


// 查询对应的类型费用
export function getLeasePriceTypeId(id) {
  return request({
    url: '/park/lease/queryLeasePriceTypeId?id='+id,
    method: 'get'
  })
}


export function saveLeasePrice(data) {
  return request({
    url: '/park/lease/saveLeasePrice',
    method: 'POST',
    data: data
  })
}
